/**
 Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
 moveZeros([false,1,0,1,2,0,1,3,"a"]) // returns[false,1,1,2,1,3,"a",0,0]
 */
var moveZeros = function(arr) {
    const _arr = arr.filter(
        item => (typeof item === "number" ? item > 0 : true)
    );
    const start = _arr.length;
    const end = arr.length;

    _arr.length = arr.length;

    return _arr.fill(0, start, end);
};